home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
tautobtn
/
examp1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
2KB
|
93 lines
unit examp1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, AutobtnF, Autobtn;
type
TForm1 = class(TForm)
Edit1: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Image3: TImage;
Image1: TImage;
Image2: TImage;
Bevel1: TBevel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Memo1: TMemo;
Memo2: TMemo;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Edit2: TEdit;
BitBtn1: TBitBtn;
FlashChk: TCheckBox;
FlashButton1: TFlashButton;
autoButton1: TautoButton;
autoButton2: TautoButton;
Image4: TImage;
autoButton3: TautoButton;
Image5: TImage;
Label10: TLabel;
Label11: TLabel;
Image6: TImage;
Label12: TLabel;
procedure autoButton1Click(Sender: TObject);
procedure autoButton3Click(Sender: TObject);
procedure Edit2Change(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure FlashChkClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
clickCount: longInt;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.autoButton1Click(Sender: TObject);
var
st: string;
begin
inc(clickCount);
str(clickCount,st);
edit1.text:=st;
end;
procedure TForm1.autoButton3Click(Sender: TObject);
begin
autoButton2.displayAlt:=not autoButton2.displayAlt;
end;
procedure TForm1.Edit2Change(Sender: TObject);
var
interval,
errCode: integer;
begin
val(edit2.text,interval,errCode);
flashButton1.FlashInterval:=interval;
end;
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
close;
end;
procedure TForm1.FlashChkClick(Sender: TObject);
begin
flashButton1.flash:=flashChk.checked;
end;
end.